package com.zhouyu.aop;

import com.zhouyu.aop.config.AppConfig;
import com.zhouyu.aop.service.OrderService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author mimao funfind@yeah.net
 * @date ${{
 */
public class TestSpring {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		OrderService orderService = (OrderService)context.getBean("orderService");
		orderService.test();

	}
}
